import { getGoodsCate } from '@/api/goods'
export default {
    namespaced:true,
    state: () => ({
        cateList: []  //商品分流数据
    }),
    mutations: {
        setCate(state, data) {
            state.cateList = data
        }
    },
    actions: {
        async getCate({ commit }) {
            const { data } = await getGoodsCate()
            commit('setCate', data)
            console.log(data);
        }
    },
    getters: {}
}